const infoEN = {
  template: `
    <div>
      <div class="info-title">{{whois.domainName}} 的英文注册信息</div>
      <div class="info-data">
        <pre>{{originalInfo | escape}}</pre>
      </div>  
    </div>
    `,
  props: ['infoEN'],
  data: () => {
    return {
      whois: '',
      originalInfo: ''
    }
  },
  watch: {
    infoEN(val){
      this.whois = val;
      this.originalInfo = val.originalInfo;
    }
  },
  filters: {
    escape: function(value){
      return value.replace('\&lt;&lt;&lt;','<<<').replace('&gt;&gt;&gt;','>>>')
    }
  }
}
module.exports = infoEN;